package itcast.bos.base.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import itcast.bos.base.dao.TakeTimeResptory;
import itcast.bos.base.service.ITakeTimeService;
import itcast.bos.domain.base.TakeTime;
@Service
@Transactional
public class TakeTimeService implements ITakeTimeService{
	
	@Autowired
	private TakeTimeResptory tir;
	
	@Override
	public List<TakeTime> findAll() {
		List<TakeTime> list = tir.findAll();
		return list;
	}

	@Override
	public TakeTime findOne(String takeTimeId) {
		int id = Integer.parseInt(takeTimeId);
		return tir.findOne(id);
	}
	
}
